package com.fuze.energy.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sepc_
 * @date 7/29/2021 15:24
 */
@ApiModel(value = "com-fuze-energy-domin-entity-MonitoringData")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "HWGdate.monitoring_data_tab")
public class MonitoringData implements Serializable {
    private static final long serialVersionUID = 4876760207455854523L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增主键")
    private Integer id;

    /**
     * 主板id
     */
    @TableField(value = "mainboardId")
    @ApiModelProperty(value = "主板id")
    private String mainboardid;

    /**
     * 数据采集时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`date`")
    @ApiModelProperty(value = "")
    private Date date;

    /**
     * 环境温度
     */
    @TableField(value = "temperature")
    @ApiModelProperty(value = "环境温度")
    private Double temperature;

    /**
     * 湿度
     */
    @TableField(value = "humidity")
    @ApiModelProperty(value = "湿度")
    private Double humidity;

    /**
     * 红外测温温度
     */
    @TableField(value = "Infrared_thermometry")
    @ApiModelProperty(value = "红外测温温度")
    private Double infraredThermometry;

    /**
     * 烟雾/臭氧密度
     */
    @TableField(value = "Smoke_denstiy")
    @ApiModelProperty(value = "烟雾/臭氧密度")
    private Integer smokeDenstiy;

    /**
     * 环网柜名称
     */
    @TableField(value = "Rmu_name")
    @ApiModelProperty(value = "环网柜名称")
    private String rmuName;


    public static final String COL_ID = "id";

    public static final String COL_MAINBOARDID = "mainboardId";

    public static final String COL_DATE = "date";

    public static final String COL_TEMPERATURE = "temperature";

    public static final String COL_HUMIDITY = "humidity";

    public static final String COL_INFRARED_THERMOMETRY = "Infrared_thermometry";

    public static final String COL_SMOKE_DENSTIY = "Smoke_denstiy";

    public static final String COL_RMU_NAME = "Rmu_name";
}